#include "Base.h"
#include "MatchServer.h"
#include "WorldPlayer.h"


CWorldPlayer *g_pWorldPlayer = NULL;

CWorldPlayer::CWorldPlayer(void)
{
}

CWorldPlayer::~CWorldPlayer(void)
{
}

BOOL CWorldPlayer::OnInitialUpdate(const char *szServerIP, int nPort, int nOrigin, int nServerId)
{
	if(!CServerPlayer::OnInitialUpdate(szServerIP, nPort, nOrigin, nServerId))
	{
		WriteLog("%s : %d CWorldPlayer::OnInitialUpdate return FALSE", __FILE__, __LINE__);
		return FALSE;
	}
	g_pWorldPlayer = this;

	g_pMatchServer->NotifyAllSignupInfo();
	return TRUE;
}

Msg* CWorldPlayer::CreateMsg(DWORD dwMsgId, int nLen)
{
	switch(dwMsgId)
	{
	default:
		return NULL;
	}
	return NULL;
}

BOOL CWorldPlayer::OnMsg(Msg *pMsg)
{
	DWORD dwMsgId = pMsg->GetMsgId();
	switch(dwMsgId)
	{
	default:
		return TRUE;
	}
	return TRUE;
}